package ca.camosun.chatbox.profile;

import java.util.ArrayList;
import java.util.List;

import ca.camosun.chatbox.chatroom.ChatRoom;

public class Profile implements Comparable<Profile> {

	private final String name;
	private ArrayList chatRooms;
	
	public Profile(String userName) {
		name = userName;
		chatRooms = new ArrayList<ChatRoom>();
	}

	public String getName() {
		return name;
	}

	@Override
	public boolean equals(Object o) {
		Profile other = (Profile) o;

		return name.equals(other.name);
	}

	@Override
	public int compareTo(Profile other) {
		return name.compareTo(other.name);
	}
}
